Skip to content

fix: prevent rslib publish chunk collisions#423

Merged
thymikee merged 1 commit into
mainfrom
codex/fix-rslib-single-build
Apr 17, 2026
Merged

fix: prevent rslib publish chunk collisions#423
thymikee merged 1 commit into
mainfrom
codex/fix-rslib-single-build

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

Collapse the two Rslib ESM builds into a single build so published artifacts share one chunk namespace.

This fixes the agent-device@0.12.7 global install/runtime failure caused by both Rslib compilations emitting numeric chunks such as dist/src/818.js into the same directory. Touched files: 1. Scope stayed within build tooling.

Validation

  • pnpm check:tooling
  • pnpm exec oxfmt --check rslib.config.ts
  • node bin/agent-device.mjs --help
  • node dist/src/bin.js --version
  • node --input-type=module -e "await import('./dist/src/index.js'); await import('./dist/src/commands/index.js'); await import('./dist/src/metro.js'); console.log('imports ok')"
  • npm pack --ignore-scripts and installed the tarball into a temporary prefix, then ran installed agent-device --help

Known gap: the already-published 0.12.7 tarball is immutable; this fix needs a new patch release.

@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-423/

Built to branch gh-pages at 2026-04-17 10:46 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee merged commit add43ec into main Apr 17, 2026
15 checks passed
@thymikee thymikee deleted the codex/fix-rslib-single-build branch April 17, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant